package com.caifu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caifu.mapper.COrgDeptMapper;
import com.caifu.pojo.COrg;
import com.caifu.pojo.COrgDept;
import com.caifu.service.COrgDeptService;
import com.caifu.vo.DeptVo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 机构部门表 服务实现类
 * </p>
 *
 * @author tww
 * @since 2020-12-10
 */
@Service
public class COrgDeptServiceImpl extends ServiceImpl<COrgDeptMapper, COrgDept> implements COrgDeptService {

    @Resource
    private COrgDeptMapper deptMapper;

    @Override
    public List<COrg> listDept(int orgId) throws Exception {
        try {
            return deptMapper.listDept(orgId);
        } catch (Exception e) {
            e.printStackTrace();
            throw new Exception();
        }
    }


}
